<template>
  <div class="logo">
    <router-link :to="{ path: reload }">
      <!-- <LogoSvg alt="logo" /> -->
      <img src="@/assets/logo.png" alt="">
      <span class="projectName" v-if="showTitle">{{ title }}</span>
    </router-link>
  </div>
</template>

<script>
import LogoSvg from '@/assets/logo.svg?inline'

export default {
  name: 'Logo',
  components: {
    LogoSvg
  },
  props: {
    title: {
      type: String,
      default: process.env.VUE_APP_ProjectName,
      required: false
    },
    showTitle: {
      type: Boolean,
      default: true,
      required: false
    },
    reload: {
      type: String,
      default: process.env.VUE_APP_DesktopPath,
      required: false
    }
  }
}
</script>
<style lang="less" scoped>
.projectName {
  font-weight: bold;
  font-size: 16px;
  font-family: 微软雅黑,serif;
  color: white;
  text-align: center;
  vertical-align: middle;
  letter-spacing: 1px;
  margin-left: 10px;
}
</style>
